package card;

import java.util.Scanner;

import PJ.Entrance;
import PJ.Player;
public class RemoteDiceCard extends CardSystem {
	//遥控骰子
	String name="RemoteDiceCard";
	String function="使用时可以任意控制骰子的结果，结果只能是1-6";	
	String type="ToolCard";
	String range="自己";
	RemoteDiceCard(){
		int point=15;
		this.point=point;
	}	
	@Override
	public int getPoint() {
		return point;
	}
	@Override
	public String getName() {
		
		return name;
	}

	@Override
	public String getFunction() {
		// TODO Auto-generated method stub
		return function;
	}

	@Override
	public String getType() {
		// TODO Auto-generated method stub
		return type;
}

	@Override
	public String getRange() {
		// TODO Auto-generated method stub
		return range;
	}
	@Override
	public void print(int location, int namei) {
		// TODO Auto-generated method stub
		Player player=new Player();
		for(int i=0;i<Entrance.players.size();i++){
			if(Entrance.players.get(i).getNamei()==namei){
				player=Entrance.players.get(i);
			}
		}
		System.out.println("请输入你想得到的骰子数：");
		Scanner input = new Scanner(System.in);
		int in = input.nextInt();
		switch(in){
		default:
		if(in<0||in>6){
			System.out.println("输入不合法，请重新输入");
			in = input.nextInt();
			break;
		}else{
			player.setSpecial(in);
			System.out.println("卡牌使用成功");
		}
		}
	}
}


